package com.lzh.tiktok.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author lizhihang
 * @create 2023-01-29 13:36
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MessageVo{
    //消息id
    private Integer id;
    //该消息接收者的id
    private Integer to_user_id;
    //该消息发送者的id
    private Integer from_user_id;
    //消息内容
    private String content;
    //消息发送时间 yyyy-MM-dd HH:MM:ss
    //聊天记录应该按照时间顺序进行排列，时间最近的在最下面
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String create_time;

}
